package com.wxs.dao;

import com.wxs.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    @Select("select * from user")
    List<User> getUserList();

    @Delete("delete from user where id = #{uid}")
    void deleteUserById(@Param("uid") int id);

}
